/******************************************************************************
 * (C) Copyright 2013 Atech-Automotive
 * FILE NAME:    uds_can_trans_cfg.h
 * DESCRIPTION:
 * 
 * DATE BEGUN:   2015/05/04
 * BY:           hui.pang
 * PRODUCT NAME:
 * APPLICATION:
 * TARGET H/W:
 * DOC REF:
 *****************************************************************************
 */

#ifndef _UDS_CAN_TRANS_CFG_H_
#define _UDS_CAN_TRANS_CFG_H_

/*****************************************************************************
** Default Macro Definition
*****************************************************************************/
#define SEND_CF_FRAME_UNINTERRUPTED (0x00)
#define SEND_CF_FRAME_EVERY_10_MS   (0x01)

/*****************************************************************************
** Config Macro Definition
*****************************************************************************/
/*
**  Config Macro: RX_MAX_TP_BYTES
**  Description: config the max tx/rx buffer size, Tx & Rx use the same buffer
**  Possible Value: recommended to use number of dtc * 4 + 8
*/
#define RX_MAX_TP_BYTES        (70 * 4 + 8)

/*
**  Config Macro: FC_BS_MAX_VALUE
**  Description: config flow control frame BS - block size
**  Possible Value: 
*/
#define FC_BS_MAX_VALUE         ((UINT8)8)	

/*
**  Config Macro: FC_ST_MIN_VALUE
**  Description: config flow control frame STmin
**  Possible Value: 
*/
#define FC_ST_MIN_VALUE         ((UINT8)20)

/*
**  Config Macro: 
**  Description: Limit time
**  Possible Value: 
*/
#define N_As     (25)      //(70)//
#define N_Ar     (25)      //(70)//
#define N_Bs     (75)      //(300)//
#define N_Br     (N_Bs - N_Ar)
#define N_Cr     (300)
#define N_Cs     (N_Cr - N_As)

/*
**  Config Macro: SEND_CF_FRAME_TYPE
**  Description: configure the interval of Consecutive Frame, uninterrupted 
**               or every 10 msecond.
**  Possible Value: SEND_CF_FRAME_UNINTERRUPTED
**                  SEND_CF_FRAME_EVERY_10_MS
*/
#define SEND_CF_FRAME_TYPE  SEND_CF_FRAME_EVERY_10_MS

/*
**  Config Macro: TX_FRAME_DATA_INIT_VALUE
**  Description: Init value of tx buffer
**  Possible Value: 
*/
#define TX_FRAME_DATA_INIT_VALUE (0x55)

/*****************************************************************************
** Default Macro Definition
*****************************************************************************/


/****************************************************************************/

#endif	//_UDS_CAN_TRANS_CFG_H_

/*****************************************************************************
** End File
*****************************************************************************/
